package com.lebang.mapper;

import com.lebang.domain.RouseCountMemberRecord;
import com.lebang.example.RouseCountMemberRecordExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * RouseCountMemberRecordMapper继承基类
 */
@Mapper
public interface RouseCountMemberRecordMapper extends MyBatisBaseDao<RouseCountMemberRecord, Integer, RouseCountMemberRecordExample> {

    Integer selectByMemberIdAndConfigId(@Param("memberId") String memberId, @Param("rouseConfigId") Integer rouseConfigId, @Param("now") LocalDate now);

    RouseCountMemberRecord selectRecordByMemberIdAndConfigId(@Param("memberId") String memberId, @Param("rouseConfigId") Integer rouseConfigId, @Param("now") LocalDate now);

    List<RouseCountMemberRecord> selectByTimeAnMemberId(@Param("star") LocalDateTime star, @Param("end") LocalDateTime end, @Param("memberId") String memberId);
}